@import "theme";
[ng-messages].ng-inactive:before {}

.edit_form, .dialog_form {
	.right {
		text-align: right;
	}
	a {
		color: #3a98ec;
	}
	input:not([type]),
	input[type="email"],
	input[type="number"],
	input[type="password"],
	input[type="tel"],
	input[type="url"],
	input[type="text"],
	input[type="date"],
	input[type="datetime"],
	select,
	textarea {
		width: 100%;
		font-size: 14px;
		padding: 8px 12px;
		display: inline-block;
		vertical-align: middle;
		box-sizing: border-box;
		resize: none;
		border: @mainBorder;
		background: @lightBg;
		min-width:250px;
	}
	td [ng-messages] {
		display: inline-block;
		vertical-align: middle;
		position: relative;
		margin-left: 10px;
		[ng-message] {
			white-space: nowrap;
			padding: 4px 8px;
			background: red;
			min-width: 1.5em;
			color: #fff;
			border-radius: 4px;
			margin-left: 10px;
			font-size: 14px;
			line-height: 1.3em;
			height: 1.3em;
			position: absolute;
			top: 0;
			left: 0;
			bottom: 0;
			margin: auto 0;
			&:before {
				content: "";
				height: 0;
				width: 0;
				border: 8px solid red;
				position: absolute;
				left: -15px;
				bottom: 0;
				top: 0;
				margin: auto 0;
				display: block;
				border-color: transparent red transparent transparent;
			}
		}
	}
	table {
		width: 100%;
	}
	th, td {
		color: #3A3939;
		font-size: 14px;
		position: relative;
		padding:10px;
	}
	th {
		text-align: right;
		font-weight: 400;
		font-size: 14px;
		&:after{
			content:" ：";
		}
	}
}

.edit_form {
	margin: 5px 20px;
	th,
	td {
		padding: 10px;
	}
}

.dialog_form {
	padding:0 20px;
	margin: 5px;
	th, td {
		padding: 8px 10px;
	}
	button.form_btn {
		margin-top: 10px;
		width: 100%;
		padding: 10px 0;
		background: #ffe566;
		border-radius: 1px;
		color: #757575;
		font-size: 16px;
		border: none;
	}
}

.form_group {
	padding: 5px 0;
	display: block;
	.form_group_title {
		font-size: 16px;
		margin-right: 6px;
		padding-bottom: 4px;
		color: #8f8f8f;
	}
	.form_group_header {
		margin-bottom: 4px;
		color: #777;
		> div {
			display: inline-block;
			vertical-align: middle;
		}
		[ng-message] {
			font-size: 14px;
		}
	}
	.form_group_body {
		margin-bottom: 5px;
		>* {
			display: inline-block;
			vertical-align: middle;
		}
		[ng-messages] {
			margin-left: 10px;
			[ng-message] {
				padding: 5px 10px;
			}
		}
	}
	[ng-messages] {
		position: relative;
		font-size: 16px;
		[ng-message] {
			white-space: nowrap;
			padding: 2px 6px;
			background: red;
			color: #fff;
			margin-left: 10px;
			line-height: 1.3em;
			height: 1.3em;
			position: absolute;
			top: 0;
			bottom: 0;
			margin: auto 0;
			&:before {
				content: "";
				height: 0;
				width: 0;
				border: 6px solid red;
				position: absolute;
				left: -11px;
				bottom: 0;
				top: 0;
				margin: auto 0;
				display: block;
				border-color: transparent red transparent transparent;
			}
		}
	}
}

@borderColor: #56BFD5;
.checkbox {
	padding: 3px 0;
	margin-right: 30px;
	display: inline-block;
	vertical-align: middle;
	position: relative;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: default;
	background: #fff;
	white-space: nowrap;
	font-size: 0;
	&:before {
		content: "";
		display: inline-block;
		width: 18px;
		height: 18px;
		border: 3px solid #dbdbdb;
		vertical-align: middle;
		margin-right: 5px;
	}
	input[type="checkbox"] {
		display: none;
		&:checked+ .checkbox_text {
			&:before {
				width: 10px;
				left: -24px;
				top: 5px;
				z-index: 1;
				-moz-transform: rotate(45deg);
				-ms-transform: rotate(45deg);
				-o-transform: rotate(45deg);
				-webkit-transform: rotate(45deg);
				transform: rotate(45deg);
				-moz-animation: dothabottomcheck 0.07s ease 0s forwards;
				-o-animation: dothabottomcheck 0.07s ease 0s forwards;
				-webkit-animation: dothabottomcheck 0.07s ease 0s forwards;
				animation: dothabottomcheck 0.07s ease 0s forwards;
			}
			&:after {
				width: 24px;
				left: -22px;
				top: 12px;
				box-shadow: 0 0 0 2px #fff;
				-moz-transform: rotate(-45deg);
				-ms-transform: rotate(-45deg);
				-o-transform: rotate(-45deg);
				-webkit-transform: rotate(-45deg);
				transform: rotate(-45deg);
				-moz-animation: dothatopcheck 0.14s ease 0s forwards;
				-o-animation: dothatopcheck 0.14s ease 0s forwards;
				-webkit-animation: dothatopcheck 0.14s ease 0s forwards;
				animation: dothatopcheck 0.14s ease 0s forwards;
			}
		}
	}
	.checkbox_text {
		display: inline-block;
		height: 18px;
		line-height: 18px;
		font-size: 16px;
		position: relative;
		vertical-align: middle;
		&:before,
		&:after {
			content: "";
			display: inline-block;
			height: 4px;
			background: @borderColor;
			position: absolute;
			-moz-transform-origin: left top;
			-ms-transform-origin: left top;
			-o-transform-origin: left top;
			-webkit-transform-origin: left top;
			transform-origin: left top;
		}
	}
}


/* Checkmark style starts */

@-moz-keyframes dothabottomcheck {
	0% {
		width: 0;
	}
	100% {
		width: 10px;
	}
}

@-webkit-keyframes dothabottomcheck {
	0% {
		width: 0;
	}
	100% {
		width: 10px;
	}
}

@keyframes dothabottomcheck {
	0% {
		width: 0;
	}
	100% {
		width: 10px;
	}
}

@keyframes dothatopcheck {
	0% {
		width: 0;
	}
	50% {
		width: 0;
	}
	100% {
		width: 24px;
	}
}

@-webkit-keyframes dothatopcheck {
	0% {
		width: 0;
	}
	50% {
		width: 0;
	}
	100% {
		width: 24px;
	}
}

@-moz-keyframes dothatopcheck {
	0% {
		width: 0;
	}
	50% {
		width: 0;
	}
	100% {
		width: 24px;
	}
}

.radio {
	display: inline-block;
	padding: 3px 0;
	margin-right: 12px;
	font-size: 0;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	&:before {
		content: "";
		display: inline-block;
		border: 2px solid #dbdbdb;
		border-radius: 50%;
		height: 24px;
		width: 24px;
		vertical-align: middle;
		margin-right: 5px;
	}
	input[type=radio] {
		display: none;
		&:checked+ .radio_text {
			&:before {
				display: inline-block;
			}
			&:not(:checked)+ .radio_text {
				-webkit-transform: scale(0);
				transform: scale(0);
			}
		}
	}
	.radio_text {
		position: relative;
		font-size: 16px;
		display: inline-block;
		vertical-align: middle;
		line-height: 1em;
		&:before {
			background: @borderColor;
			border-radius: 50%;
			height: 16px;
			width: 16px;
			display: none;
			content: "";
			position: absolute;
			bottom: 0;
			top: 0;
			left: -27px;
			margin: auto 0;
			-webkit-animation: springing_in 0.2s linear;
			-moz-animation: springing_in 0.2s linear;
			-ms-animation: springing_in 0.2s linear;
			animation: springing_in 0.2s linear;
		}
	}
}


/*抖动*/

@keyframes springing_in {
	10% {
		-webkit-transform: scale(1.4);
		transform: scale(1.4);
	}
	20% {
		-webkit-transform: scale(1.3);
		transform: scale(1.3);
	}
	30% {
		-webkit-transform: scale(1.2);
		transform: scale(1.2);
	}
	40% {
		-webkit-transform: scale(1.1);
		transform: scale(1.1);
	}
	50% {
		-webkit-transform: scale(1.0);
		transform: scale(1.0);
	}
	60% {
		-webkit-transform: scale(0.9);
		transform: scale(0.9);
	}
	70% {
		-webkit-transform: scale(0.8);
		transform: scale(0.8);
	}
	80% {
		-webkit-transform: scale(0.9);
		transform: scale(0.9);
	}
	90% {
		-webkit-transform: scale(0.95);
		transform: scale(0.95);
	}
	100% {
		-webkit-transform: scale(1.0);
		transform: scale(1.0);
	}
}